﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Api.WDS.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class LogInController : ControllerBase
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <returns></returns>
        [HttpGet("UserLogIn")]
        public IActionResult LogIn()
        {
            var uid = HttpContext.Request.Query["Uid"];
            var pwd = HttpContext.Request.Query["Pwd"];

            return Ok(new Operate.LogInOp().UserLogIn(uid, pwd, HttpContext.Session.Id));
        }
    }
}
